package cn.itcast.runner;

import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.extra.mail.MailUtil;
import cn.itcast.aisi.controller.AiSiController;
import cn.itcast.banart.controller.BanArtController;
import cn.itcast.caomao.controller.CaoqiuController;
import cn.itcast.controller.RlController;
import cn.itcast.ft.controller.FTController;
import cn.itcast.kl.controller.ChuCangController;
import cn.itcast.md.controller.MdController;
import cn.itcast.xunyin.controller.XunyinController;
import cn.itcast.yinbo.controller.YinBoController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Component;

/**
 * Author:zhansan
 * Date:2023/3/26
 * Description:
 */
@Component
@Slf4j
public class MyRunner implements CommandLineRunner {
    @Autowired
    private ConfigurableApplicationContext context;
    @Autowired
    private FTController ftController;
    @Autowired
    private RlController rlController;
    @Autowired
    private AiSiController aiSiController;
    @Autowired
    private MdController mdController;
    @Autowired
    private YinBoController yinBoController;
    @Autowired
    private ChuCangController chuCangController;
    @Autowired
    private CaoqiuController caoController;
    @Autowired
    private XunyinController xunyinController;
    @Autowired
    private BanArtController banArtController;
    @Override
    public void run(String... args) throws Exception {
//        rlController.createMarket(10000,"1","31");
        //自动关闭Tomcat，469：细水长流，584：毕月乌，599：谨行捡用，572：奎木狼，544：张月鹿
        //606兢兢业业，715：簪花赏秋，尾火虎：626
//        aiSiController.createAsMarket(10000,"299","626");
//        yinBoController.createYinBoMarket(10000,"299","430");
//        chuCangController.createKlMarket(100000,"44","8");
//        caoController.createCmMarket(100000,"21","51");
//        caoController.createCmsynthesis(1500,"3");
//        xunyinController.createXyMarket(100000,"80","115");
        ///合成通道
//        https://www.srelang.cn/h5/super/synthetic/synthetic
//        {
//            "id": "261"
//        }
//        rlController.createMarket(1000000,"300","922");
        log.info("##执行成功##");
    }
}
